<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		   <!-- 日历插件 -->
		  <link rel="stylesheet" href="front/css/bootstrap-datetimepicker.css"  type="text/css" >
		  <script type="text/javascript" src="static/js/jquery.tips.js"></script>
	      <link rel="stylesheet" href="front/css/normal.css">
         <link rel="stylesheet" href="front/css/addBox.css">
<script type="text/javascript">
	
	
	//保存
	function save(){
		if($("#pay_money").val()==""){
			$("#pay_money").tips({
				side:3,
	            msg:'请输入',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#pay_money").focus();
			return false;
		}
		if($("#renewal_period").val()==""){
			$("#renewal_period").tips({
				side:3,
	            msg:'请输入',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#renewal_period").focus();
			return false;
		}
		if($("#payment_method").val()==""){
			$("#payment_method").tips({
				side:3,
	            msg:'请输入',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#payment_method").focus();
			return false;
		}
		if($("#payment_name").val()==""){
			$("#payment_name").tips({
				side:3,
	            msg:'请输入',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#payment_name").focus();
			return false;
		}
		if($("#bank_card_number").val()==""){
			$("#bank_card_number").tips({
				side:3,
	            msg:'请输入',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#bank_card_number").focus();
			return false;
		}
		if($("#bank_name").val()==""){
			$("#bank_name").tips({
				side:3,
	            msg:'请输入',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#bank_name").focus();
			return false;
		}
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	
</script>
	</head>
<body>
        <p class="addSlide-title">交纳管理费<span>×</span></p>
	   <form action="bomanagementpay/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="managemant_pay_id" id="managemant_pay_id" value="${pd.managemant_pay_id}"/>
		<input type="hidden" name="bo_id" id="bo_id" value="${pd.filiale_id}" maxlength="32" placeholder="这里输入" title=""/>
		<ul class="addList">
				<li><span>交纳时间:</span><input type="text" readonly="readonly" class="form_datetime date"  name="pay_time" id="pay_time" value="${pd.pay_time}" maxlength="32" placeholder="交纳时间" title=""/></li>
				<li><span>交纳金额:</span><input type="text" name="pay_money" id="pay_money" value="${pd.pay_money}" maxlength="32" placeholder="交纳金额" title=""/></li>
				<li><span>续约年限:</span><input type="text" name="renewal_period" id="renewal_period" value="${pd.renewal_period}" maxlength="32" placeholder="续约年限" title=""/></li>
				<li><span>交纳方式:</span><input type="text" name="payment_method" id="payment_method" value="${pd.payment_method}" maxlength="32" placeholder="交纳方式" title=""/></li>
				<li><span>交纳人姓名:</span><input type="text" name="payment_name" id="payment_name" value="${pd.payment_name}" maxlength="32" placeholder="交纳人姓名" title=""/></li>
				<li><span>银行卡号:</span><input type="text" name="bank_card_number" id="bank_card_number" value="${pd.bank_card_number}" maxlength="32" placeholder="银行卡号" title=""/></li>
				<li><span>银行名称:</span><input type="text" name="bank_name" id="bank_name" value="${pd.bank_name}" maxlength="32" placeholder="银行名称" title=""/></li>
				</ul>
				<p class="operate">
				 <input type="button"  onclick="cancel()" value="取消保存" class='cancelSave'>
                      <input type="button" onclick="save();" value="确认保存" class='confirmSave'>
				</p>
	</form>
</body>
	      <script src="front/js/jquery-2.0.3.min.js"></script>
	      <script src="front/js/index.js"></script>
	      <script type="text/javascript" src="front/js/jquery.tips.js"></script>
	      <!-- 日历插件 -->
	      <script src="front/js/bootstrap-datetimepicker.js"></script>
	    <script type="text/javascript">
		function cancel(){
			$('#zhongxin', parent.document).hide();
		}
		$(function(){
			//下拉框
			$(".form_datetime").datetimepicker( {
                autoclose:true,
                format: "yyyy-mm-dd",
                language: 'cn',
                clearBtn:true,
                todayHighlight: true
            });
        });
	</script>
</html>